﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marx
{
    public class UIOK
    {
        public const string kName = "UIOKDialog";
        public const string kPath = "ui/dialog_ok.prefab";
    }

    [UIRegister(UIOK.kName, UIOK.kPath, UIType.Popup)]
    public class UIOKController : UIOKControllerBasic
    {
        public Action OnClickOK;

        protected override void ClickOk()
        {
            OnClickOK?.Invoke();
            Close();
        }

        public void SetContent(string content)
        {

        }
    }
}
